﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SearchByParrot.aspx.vb" Inherits="Assignment_2___Prototype.SearchByParrot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

    .style2
    {
        height: 33px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <table width="100%">
            <tr>
                <td align="left" class="style2">
                    Enter the hotel name:&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="tb_SearchByParrot" runat="server" Height="37px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btn_SearchByParrot" runat="server" CssClass="buttons" 
                        Text="Search" />
                    <br />
                </td>
            </tr>
            <tr>
                <td align="left" class="style2">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataSourceID="DataSourceForParrotSearch" Height="282px" Width="899px">
                        <Columns>
                            <asp:BoundField DataField="Species" HeaderText="Species" 
                                SortExpression="Species" />
                            <asp:BoundField DataField="Breed" HeaderText="Breed" SortExpression="Breed" />
                            <asp:BoundField DataField="ParrotSize" HeaderText="ParrotSize" 
                                SortExpression="ParrotSize" />
                            <asp:BoundField DataField="TalkingAbility" HeaderText="TalkingAbility" 
                                SortExpression="TalkingAbility" />
                            <asp:CheckBoxField DataField="Playful" HeaderText="Playful" 
                                SortExpression="Playful" />
                            <asp:BoundField DataField="Picture" HeaderText="Picture" 
                                SortExpression="Picture" />
                        </Columns>


            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />




                    </asp:GridView>
                    <asp:SqlDataSource ID="DataSourceForParrotSearch" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                        SelectCommand="SELECT [Species], [Breed], [ParrotSize], [TalkingAbility], [Playful], [Picture] FROM [Parrot]">
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </p>
    <p>
    </p>
</asp:Content>
